package com.ruoyi.system.enums;

import lombok.Getter;
import lombok.ToString;

@Getter
@ToString
public enum EventAuditEnums {
    FAlSE("0", "未审核"),
    TRUE("1", "已审核");

    private final String code;
    private final String message;

    EventAuditEnums(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public static EventAuditEnums getInstance(String code) {
        switch (code) {
            case "0":
                return FAlSE;
            case "1":
                return TRUE;
            default:
                return null;
        }
    }
}
